#pragma once
#include "Controls/Window.h"
#include "cinder/app/KeyEvent.h"
#include "cinder/app/MouseEvent.h"
namespace cxgui
{
using namespace std;
using namespace ci;
using namespace ci::app;
class UIManager
{
public:
	void Update();
	void Draw();
	void KeyDown(const KeyEvent& e);
	void MouseClick(const MouseEvent& e);
	void AddWindow(shared_ptr<Window> window, bool active = true);
	virtual ~UIManager();
protected:
	vector<shared_ptr<Window>> _windows;
	shared_ptr<Window> _activeWindow;
};
}